<script>
import { mapMutations } from "vuex";

export default {
  onLaunch: function () {
    // #ifdef H5
    console.log(
      `%c hello uniapp %c 3.4.7`,
      "background:#35495e ; padding: 1px; border-radius: 3px 0 0 3px;  color: #fff",
      "background:#007aff ;padding: 1px; border-radius: 0 3px 3px 0;  color: #fff; font-weight: bold;"
    );
    // #endif

    // wx.loadFontFace({
    //   family: 'AlimamaAgileVFThin',
    //   source: 'url(https://at.alicdn.com/wf/webfont/8gFIm3WfrIwh/RJSsNl302nkr.woff2)',
    //   success: function(res) {
    //     console.log('字体加载成功', res);
    //   },
    //   fail: function(error) {
    //     console.log('字体加载失败', error);
    //   }
    // });
  },

  globalData: {
    test: "",
  },
  methods: {
    ...mapMutations(["setUniverifyErrorMsg", "setUniverifyLogin"]),
  },
};
</script>

<style lang="scss">
@import "@/uni_modules/uni-scss/index.scss";
/* uni.css - 通用组件、模板样式库，可以当作一套ui库应用 */
@import "./common/uni.css";

// 全局通用样式
@import "./styles/index.scss";

* {
  padding: 0;
  margin: 0;
}

/* #ifdef H5 */
uni-page-head {
  display: none !important;
}
uni-app uni-page-head[uni-page-head-type="default"] ~ uni-page-wrapper {
  height: 100%;
}
/* #endif */

/* 全局使用字体 */
// page {
//   font-family: $font-family-global; //引用字体集
// }

uni-page-body {
  background-color: #f5f5f5 !important;
  min-height: 100% !important;
  height: auto !important;
}
</style>
